package com.shine.dao;

import com.shine.pojo.Books;

import java.util.List;

public interface BookMapper {

    //增加一本书
    int addBook(Books book);

    //删除一本书
    int deleteBookById(int id);

    //更新一本书
    int updateBook(Books book);

    //查询一本书
    Books queryBookById(int id);

    //查询全部书
    List<Books> queryAllBook();

    //根据书名查询
    Books queryBookByName(String bookName);
}
